package api;

import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;

public class DateFormatting {

	public static void main(String[] args) {
		System.out.println(
				DateFormat.getDateInstance(DateFormat.LONG, Locale.UK)
					.format(new Date()));
		System.out.println(
				DateFormat.getDateTimeInstance(DateFormat.LONG,DateFormat.SHORT)
					.format(new Date()));
		System.out.println(
				DateFormat.getInstance()
					.format(new Date()));
	}
	
}
